<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Ad/index')}>">运营管理</a></li>
      	<li><a href="<{:U('Link/index')}>">友情链接</a></li>
      	<li class="active">添加</li>
    </ol>

	<form id="ajaxForm" action="<{:U('Link/save')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="name">名称：</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="name"
				id="name"
				data-rule-required="true"
				/>
			</div>
		</div>		
		<div class="form-group">
			<label class="col-md-1 control-label" for="url">链接地址：</label>
			<div class="col-md-11">
				<input type="text"
                class="form-control"
				name="url"
				id="url"
				data-rule-required="true"
				data-rule-url="true"
				/>
				<p>必须以http://开头</p>
			</div>
		</div>	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info">添加</button>
			</div>
		</div>
	</form>

<input type="hidden" id="menu_action" value="ad" />
